package com.niji.littly_donkey_android.activity;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import com.niji.littly_donkey_android.R;
import com.othershe.calendarview.listener.OnPagerChangeListener;
import com.othershe.calendarview.weiget.CalendarView;

import java.util.HashMap;

public class MainActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.text_activity);
        init();
    }

    private void init() {
        HashMap<String, String> date = new HashMap<>();
//        CalendarView calendarView = (CalendarView) findViewById(R.id.calendar);
//日历init，年月日之间用点号隔开
//        calendarView
//                .setStartEndDate("2021.1", "2099.12")
//                .setInitDate("2021.4")
//                .setSingleDate("2021.4.9")
//                .init();
//
////月份切换回调
//        calendarView.setOnPagerChangeListener(new OnPagerChangeListener() {
//            @Override
//            public void onPagerChanged(int[] date) {
//
//            }
//        });


    }

}